<template>
  <div class="pagination_wrap">
    <el-pagination
      v-model:current-page="currentPage"
      v-model:page-size="pageSize"
      :page-sizes="[5, 15, 30, 45]"
      small
      layout="total, sizes, prev, pager, next"
      :total="400"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    />
  </div>
</template>
<script setup lang="ts">
import { ref } from "vue";
/**当前页数 */
const currentPage = ref(2);
/**当前页面行数 */
const pageSize = ref(15);
/**改变页数事件 */
const handleSizeChange = () => {
  console.log("改变页数事件");
};
/**改变页面行数事件 */
const handleCurrentChange = () => {
  console.log("当前页面行数");
};
</script>
<style scoped lang="less">
.pagination_wrap {
  margin: 14px 10px;
  display: flex;
  justify-content: flex-end;
}
// :deep(.el-select) {
//     .el-input__wrapper {
//         box-shadow: none;
//     }
// }
</style>
